<?php
//删除用户
include"conn.php";
 //第三步执行SQL
$id=isset($_GET['id'])?$_GET['id']:0;
$sql="delete from tb_users where id=$id";
$rs=$mylink->query($sql);//$rs如果成功，rs为真   如果失败   rs为假
 if ($rs)

    {
        echo "<script language='javascript' type='text/javascript'>";        
        echo "window.location.href='index.php'";
        echo "</script>";
    }
 else 
    {
        echo "<script language='javascript' type='text/javascript'>";
        echo "alert('删除失败！');";
        echo "window.location.href='index.php'";
        echo "</script>";
    }
        

